package mtest2.day2;

public class Demo2 {
    public static void main(String[] args) {
        Student student = new Student("freelaeder", 21, true);
        System.out.println(student.getName());
        System.out.println(student.getAge());
        System.out.println(student.isFlag());

        // 设置私有属性
        student.setName("tom");
        System.out.println(student.getName());
    }


}
